<{if $dataList}>
    <{foreach from=$dataList item=item}>
        <ul class="no-bullet">
            <li class="row">
                <div class="grid-1" style="width:auto;">
                    <span class="text-reverse">发货单号：</span><em><{$item.delivery_bn}></em><{if $item.dly_overtime}><span style="background-color:#f00; color:#fff;text-align:center;padding:0px 3px;">超</span><{/if}>
                </div>
                <div class="grid-5 text-right">
                    <span style="color: red; font-weight: bold">
                    <{if $item.status == '3' && $item.confirm == '1'}>
                        <{if $item.logi_name == '门店自提'}>已自提<{else}>已配送<{/if}>,<{ if $item.is_cod=='true'}>代收货款 <{$item.order_extends.receivable}>元<{else}>货款已支付<{/if}>
                    <{else}>
                        <{$item.logi_name}>,<{ if $item.is_cod=='true'}>需代收货款 <{$item.order_extends.receivable}>元<{else}>货款已支付<{/if}>
                    <{/if}>
                    </span>
                </div>
            </li>
            <li class="row">
                  <div class="grid-9">
                      <span class="text-reverse">订 单 号：</span><em><{$item.order_bn}></em>
                  </div>
            </li>
            <li class="row">
                <div class="grid-1">
                    <span class="text-reverse">成单时间：</span>
                    <em>
                        <{if $item.is_cod == 'true'}>
                        <{if $item.order_info.createtime}><{$item.order_info.createtime|date:"Y-m-d H:i:s"}><{/if}>
                        <{else}>
                        <{if $item.order_info.paytime}><{$item.order_info.paytime|date:"Y-m-d H:i:s"}><{/if}>
                        <{/if}>
                    </em>
                </div>
                
                <{if $baidu_map_show}>
                <div class="grid-4 text-right">
                    <a href="javascript:;" class="show_map_but" id="show_map_id_<{$item.delivery_id}>" onclick="show_map('<{$item.delivery_id}>')" alt="<{$item.shop_info.addr}>"><i class="icon-location"></i> 线路查询</a>
                </div>
                <{/if}>
                
            </li>
            <li class="row">
                <div class="grid-12">
                    <span class="text-reverse">收 货 人：</span><em><{$item.ship_name}></em>&nbsp;(<{$item.ship_mobile}><{if $item.ship_tel}>/<em><{$item.ship_tel}></em><{/if}>)
                </div>
            </li>
            <li class="row">
                <div class="grid-12"><span class="text-reverse">收货地址：</span><em><{$item.ship_addr}></em></div>
            </li>
            <{if $item.order_info.is_tax=='true'}>
            <li class="row">
                <div class="grid-6"><span class="text-reverse" style="color: red">开票信息：</span><em><{$item.order_info.tax_title}></em></div>
            </li>
            <{/if}>
            <{if $item.order_info.mark_text}>
                <{foreach from=$item.order_info.mark_text key=markKey item=markItem}>
                <li class="row">
                    <div class="grid-12"><span class="text-reverse" style="color: red"><{if $markKey == 0}>订单备注：<{else}>&nbsp;<{/if}></span><em><{$markItem.op_content}>&nbsp;<{$markItem.op_time}> by <{$markItem.op_name}></em></div>
                </li>
                <{/foreach}>
            <{/if}>
        </ul>
        
        <{if $item.delivery_items}>
        <ul class="no-bullet table bordered grid-table">
            <li class="tr">
                <div class="grid-3 th" style="font-size:0.75rem;">货号</div>
                <div class="grid-7 th" style="font-size:0.75rem;">商品名称</div>
                <div class="grid-1 th nowrap" style="font-size:0.75rem;">数量</div>
            </li>
            
            <{foreach from=$item.delivery_items item=dly_item}>
            <li class="tr">
                <div class="grid-3 td item_bn" style="font-size:0.75rem;"><{$dly_item.bn}></div>
                <div class="grid-7 td item_name" style="font-size:0.75rem;"><div class="title" id="item_title_<{$dly_item.item_id}>" onclick="showTitle('<{$dly_item.item_id}>')"><{$dly_item.product_name}></div></div>
                <div class="grid-1 td" style="font-size:0.75rem;"><{$dly_item.number}></div>
            </li>
            <{/foreach}>
        </ul>
        <{/if}>
        
        <div class="text-right">共<{$item.itemNum}>件商品，总金额：<{$item.total_amount}></div>
        
        <{if $item.status == 0 && $item.confirm == 3}>
            <div class="actions text-right" id="delivery_operate_<{$item.delivery_id}>">
                <a href="javascript:;" class="btn small" data-modal-id="reject_modal" onclick="refuse_confirm('<{$item.delivery_id}>')">拒单</a>
                <a href="javascript:;" class="btn small primary" onclick="ajax_confirm('<{$item.delivery_id}>')">立即接单</a>
            </div>
        <{elseif $item.status == 0 && $item.confirm == 1}>
            <div class="actions text-right" id="delivery_operate_<{$item.delivery_id}>">
                <a href="javascript:;" class="btn small primary" onclick="ajax_consign('<{$item.delivery_id}>')">立即发货</a>
            </div>
        <{elseif $item.status == 3 && $item.confirm == 1 && $item.is_received == 1}>
            <div class="actions text-right" id="delivery_operate_<{$item.delivery_id}>">
                <a href="<{$delivery_link.signPage}>?delivery_id=<{$item.delivery_id}>" class="btn small primary">立即核销</a>
            </div>
        <{else}>
            <div class="actions text-right" style="padding-top:0px;">&nbsp;</div>
        <{/if}>
    <{/foreach}>
<{/if}>